package com.beauty.payment.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 订单服务Feign客户端
 */
@FeignClient(name = "beauty-order", path = "/api/order")
public interface OrderClient {
    
    /**
     * 通过ID更新订单状态
     * @param id 订单ID
     * @param status 状态
     * @return 响应
     */
    @PutMapping("/{id}/status")
    Object updateOrderStatus(@PathVariable("id") Long id, @RequestParam("status") String status);
    
    /**
     * 通过订单号更新订单状态
     * @param orderNumber 订单号
     * @param status 状态
     * @return 响应
     */
    @PutMapping("/by-number/{orderNumber}/status")
    Object updateOrderStatusByOrderNumber(@PathVariable("orderNumber") String orderNumber, @RequestParam("status") String status);
} 